home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 2.iso / toolbox / public / figlet / figlet2.1.1 / Makefile < prev    next >
Makefile  |  1996-11-11  |  2KB  |  65 lines

  1. # Makefile for figlet version 2.1 (28 Apr 1995)
  2. # (C) 1993, 1994 Glenn Chappell and Ian Chai
  3.  
  4. # Please make sure DESTDIR, MANDIR, DEFAULTFONTDIR and
  5. #   DEFAULTFONTFILE are defined to reflect the situation
  6. #   on your computer.  See README for details.
  7.  
  8. # Don't change this even if your shell is different. The only reason
  9. # for changing this is if sh is not in the same place.
  10. SHELL = /bin/sh
  11.  
  12. # Where the executables should be put
  13. DESTDIR = /usr/games
  14.  
  15. # Where the man page should be put
  16. MANDIR = /usr/man/man6
  17.  
  18. # Where figlet will search first for fonts (the ".flf" files) and
  19. #   control files (the ".flc" files).
  20. DEFAULTFONTDIR = /usr/games/lib/figlet.dir
  21.  
  22. # The filename of the font to be used if no other is specified
  23. #   (standard.flf is recommended, but any other can be used).
  24. #   This font file should reside in the directory specified by
  25. #   DEFAULTFONTDIR.
  26. DEFAULTFONTFILE = standard.flf
  27.  
  28. ##
  29. ##  END OF CONFIGURATION SECTION
  30. ##
  31.  
  32. SOURCES = figlet.c
  33.  
  34. all: figlet chkfont
  35.  
  36. figlet: $(SOURCES)
  37.     $(CC) $(CFLAGS) -DDEFAULTFONTDIR=\"$(DEFAULTFONTDIR)\" \
  38.        -DDEFAULTFONTFILE=\"$(DEFAULTFONTFILE)\" \
  39.        $(SOURCES) -o figlet
  40.     chmod 755 figlet
  41.  
  42. chkfont: chkfont.c
  43.     $(CC) $(CFLAGS) -o chkfont chkfont.c
  44.  
  45. clean:
  46.     rm -f *.o figlet chkfont
  47.  
  48. install: figlet chkfont
  49.     - mkdir $(DEFAULTFONTDIR)
  50.     chmod 755 $(DEFAULTFONTDIR)
  51.     cp figlet $(DESTDIR)
  52.     chmod 755 $(DESTDIR)/figlet
  53.     cp chkfont $(DESTDIR)
  54.     chmod 755 $(DESTDIR)/chkfont
  55.     cp figlist $(DESTDIR)
  56.     chmod 755 $(DESTDIR)/figlist
  57.     cp showfigfonts $(DESTDIR)
  58.     chmod 755 $(DESTDIR)/showfigfonts
  59.     cp fonts/*.flf $(DEFAULTFONTDIR)
  60.     chmod 644 $(DEFAULTFONTDIR)/*.flf
  61.     cp fonts/*.flc $(DEFAULTFONTDIR)
  62.     chmod 644 $(DEFAULTFONTDIR)/*.flc
  63.     cp figlet.6 $(MANDIR)
  64.     chmod 644 $(MANDIR)/figlet.6
  65.